//此文件用于对于第三插件进行集中的管理
import { Tabbar, TabbarItem, Toast, Form, Field, CellGroup, NavBar, Popup, Area, RadioGroup, Radio, Uploader, Button, AddressList, AddressEdit, Dialog, Swipe, SwipeItem, Loading, TreeSelect, Image as VanImage, DropdownMenu, DropdownItem, Empty, Picker, ActionBar, ActionBarIcon, ActionBarButton,Icon ,Notify,Card,Checkbox, CheckboxGroup,SubmitBar ,Stepper,SwipeCell ,ContactCard,ActionSheet ,Tab, Tabs ,Rate      } from 'vant';


//放入数组中
let plugins = [
    Tabbar, TabbarItem,//tabBar
    Toast, //提示
    Form, Field, CellGroup,//form表单
    NavBar,//导航栏
    Popup,//弹出层
    Area,//省市区选择
    RadioGroup, Radio,//radio单选框
    Uploader,//文件上传
    Button,//按钮
    AddressList,//地址列表
    AddressEdit,//地址编辑
    Dialog,//弹出框
    Swipe, SwipeItem,//轮播图
    Loading,//加载
    // Lazyload ,//懒加载
    TreeSelect,//分类选择
    VanImage,//图片
    DropdownMenu, DropdownItem,//下拉菜单
    Empty,//空状态
    Picker,//选择器
    ActionBar, ActionBarIcon, ActionBarButton,//ActionBar 动作栏，加入购物车
    Icon ,//图标
    Notify ,//Notify 消息提示
    Card ,//商品卡片
    Checkbox, CheckboxGroup,//复选框
    SubmitBar ,//提交订单栏
    Stepper ,//步进器
    SwipeCell ,//滑动单元格
    ContactCard ,//联系人卡片
    ActionSheet ,//ActionSheet 动作面板（弹出层）
    Tab, Tabs,//Tab 标签页
    Rate ,//评分
]

//Vant按需引入
export default function getVant(app) {
    //循环app.use
    plugins.forEach(item => {
        return app.use(item)
    })
}